import requset from "../utils/request"

/**
 * @description: 获取部门
 * @return {*}
 */
export const getItemDeptAPI = (data: any) => {
    return requset('depend/getItemDept', 'GET', data)
}

/**
 * @description: 新增事项办理
 * @return {*}
 */
export const addItemAPI = (data: any) => {
    return requset('depend/addItem', 'POST', data)
}

/**
 * @description: 根据条件分页查询事项办理
 * @return {*}
 */
export const getItemListAPI = (data: any) => {
    return requset('depend/getItemPageByParams', 'GET', data)
}

/**
 * @description: 更新事项办理
 * @return {*}
 */
export const updateItemAPI = (data: any) => {
    return requset('depend/updateItem', 'POST', data)
}

/**
 * @description: 根据id删除事项办理
 * @return {*}
 */
export const deleteItemAPI = (data: any) => {
    return requset(`depend/deleteItem/${data.id}`, 'GET', data)
}

/**
 * @description: 根据条件分页查询事项办理反馈
 * @return {*}
 */
export const getItemFeedbackPageByParamsAPI = (data: any) => {
    return requset(`depend/getItemFeedbackPageByParams`, 'GET', data)
}